.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
}
.show {
  height: 100%;
  opacity: 1;
  animation: show 0.4s;
}
.hide {
  height: 0;
  opacity: 0;
  overflow: hidden;
  animation: hide 0.4s;
}

@keyframes show {
  0% {
    height: 0;
    opacity: 0;
  }
  1% {
    height: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    height: 100%;
  }
}

@keyframes hide {
  0% {
    height: 100%;
    opacity: 1;
  }
  99% {
    height: 100%;
    opacity: 0;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}
